<!doctype html>
<html>

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/resources/code.svg" />
  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
  <title><%= key %></title>
  <link rel="stylesheet" href="/resources/common/next.theme.css">
  <link href="/resources/editor_preview.css" rel="stylesheet">
  <script src="/resources/common/moment.2.24.0.js"></script>
  <script src="/resources/common/jsonplus.js"></script>
  <script src="/resources/common/request.js"></script>
  <script src="/resources/common/react.16.14.0.js"></script>
  <script src="/resources/common/react-dom.16.14.0.js"></script>
  <script src="/resources/common/prop-types.15.7.2.js"></script>
  <script src="/resources/common/react15-polyfill.0.0.1.js"></script>
  <script src="/resources/common/lodash.4.6.1.min.js"></script>
  <script src="/resources/common/moment.2.24.0.js"></script>
  <script src="/resources/common/next.1.26.4.min.js"></script>
  <script src="/resources/editor_preview.js"></script>
  <script src="/resources/common/twaver.js"></script>
  <script crossorigin="anonymous" src="/mock/global.js"></script>
  <style>.lowcode-plugin-sample-preview{ height: 100%;} </style>
  <script>
    window.user = {}
    window.LOW_CODE_SCHEMA = <%- JSON.stringify(config) %>
    window.LOW_CODE_MENU = <%- JSON.stringify(menu) %>
  </script>
</head>

<body style="height: 100%;">
  <div id="lowcode-container-preview" style="height:100%"></div>
  <script>
    window.LOW_CODE_LOAD(`lowcode-container-preview`, {
      user: user,
      LOW_CODE_MENU: { },
      LOW_CODE_SCHEMA: window.LOW_CODE_SCHEMA
    })
  </script>
</body>

</html>